<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%-- Add portlet taglibs to jsp --%>
<%@ page import="javax.portlet.*"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>


<%@page import="java.util.Map"%>
<portlet:defineObjects />
<%--
<script type="text/javascript" src='<%= renderRequest.getContextPath() + "/scripts/common.js" %>' ></script>
 --%>
 <%
   Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO);
   String logonUser = (String) userInfo.get("user.name.given");
 %>
<script type="text/javascript" src='/${requestScope.contextPath}/scripts/common.js' ></script>
<b>
    This is the view page of MVC Sample - MultiForwards
</b>
<table width="100%">
<tr>
    <td align="right">
        Logon user: <b><%= logonUser %></b>
    </td>
</tr>
</table>

<form name="<portlet:namespace/>menu" action="<portlet:actionURL/>" method="POST">
<input type="hidden" name="screenId" value="Menu"/>
<input type="hidden" name="eventId" value="default"/>
Role: <select size="1" name="role">
    <option>user</option>
    <option>admin</option>
</select>
<br/>
<input type="button" name="list" value="List" onclick='submitAction("<portlet:namespace/>","menu","list");'/>
<input type="button" name="add" value="Add" onclick='submitAction("<portlet:namespace/>","menu","add");'/>
</form>